<?php

namespace frontend\models;

use Yii;

/**
 * This is the model class for table "city".
 *
 * @property string $region_id
 * @property string $region_name
 * @property integer $level
 * @property string $parent_id
 * @property integer $displayorder
 */
class City extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'city';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['level', 'parent_id', 'displayorder'], 'integer'],
            [['region_name'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'region_id' => 'Region ID',
            'region_name' => 'Region Name',
            'level' => 'Level',
            'parent_id' => 'Parent ID',
            'displayorder' => 'Displayorder',
        ];
    }
}
